# Please consult components/viz/README.md about allowable dependencies.

include_rules = [
  "+cc/base",
  "+cc/output",
  "+cc/resources",
  "+cc/scheduler",
  "+components/viz/common",
  "+components/viz/service/display/dc_layer_overlay.h",
  "+components/viz/service/display/display_compositor_memory_and_task_controller.h",
  "+components/viz/service/display/external_use_client.h",
  "+components/viz/service/display/output_surface_client.h",
  "+components/viz/service/display/output_surface_frame.h",
  "+components/viz/service/display/output_surface.h",
  "+components/viz/service/display/overlay_candidate.h",
  "+components/viz/service/display/renderer_utils.h",
  "+components/viz/service/display/resource_metadata.h",
  "+components/viz/service/display/shared_bitmap_manager.h",
  "+components/viz/service/display/skia_output_surface.h",
  "+components/viz/service/display/software_output_device.h",
  "+components/viz/service/gl/gpu_service_impl.h",
  "+gpu/command_buffer/client",
  "+gpu/command_buffer/common",
  "+gpu/command_buffer/service",
  "+gpu/config",
  "+gpu/config/gpu_feature_info.h",
  "+gpu/GLES2",
  "+gpu/ipc",
  "+gpu/skia_bindings",
  "+gpu/vulkan",
  "+mojo/public/cpp/bindings",
  "+mojo/public/cpp/system",
  "+skia",
  "+third_party/dawn/src/include",
  "+third_party/khronos/GLES2/gl2.h",
  "+third_party/khronos/GLES2/gl2ext.h",
  "+third_party/libyuv",
  "+third_party/skia",
  "+services/tracing/public/cpp/perfetto/flow_event_utils.h",
  "+ui/accelerated_widget_mac",
  "+ui/events/platform/x11/x11_event_source.h",
  "+ui/display",
  "+ui/gl",
  "+ui/latency",
  "+ui/ozone/public",

  # TODO(danakj): Double check the layering for these dependencies.
  "+components/viz/service/display/gl_renderer_copier.h",
  "+components/viz/service/display/overlay_processor.h",
  "+components/viz/service/display/overlay_processor_interface.h",
  "+components/viz/service/display/overlay_strategy_fullscreen.h",
  "+components/viz/service/display/overlay_strategy_single_on_top.h",
  "+components/viz/service/display/overlay_strategy_underlay_cast.h",
  "+components/viz/service/display/overlay_strategy_underlay.h",
  "+components/viz/service/display/texture_deleter.h",
]

specific_include_rules = {
  ".*_unittest\.cc": [
    "+cc/test",
    "+third_party/khronos/GLES2",
  ],
  "software_output_device_ozone_unittest.cc": [
    "+ui/compositor",
    "+ui/gl",
    "+ui/platform_window",
  ],
}
